some tweaks and adding many view lifecycle method snippets