Template for main activity