use emit instead of deprecated trigger
start leveraging new view lifecycle parameters