base templdate for main page