Main page

Merging UI and server.
Main page loads correctly now.