Reimplemented buttons on main page

We're basically where we were before the reset; buttons are now
optimized to just go through one function, and they lead to the right
pages!

This is a naive implementation - could fail at some point in the future,
because I just googled stuff - and the layout needs work, but not a bad
start.