fix footer and added menu
hopefuly fix a bug
extract layout and boost performance