added mainView directive for better use for main pages