Hi,
I think with those feature you are expecting, it’s complicated feature and It cannot single line code can solved and beside that need handle on many files code. So if you need implement those thing you want i suggest you need ask to developer to help handle it.