Added new main template
New Main structure
Refactoring and new main layout structure