reorganized DOM elements on main page and fixed material design input bl...

...ing