changed main.html structure
almost complete main template

and file names change