added a bunch of stuff to make frontend mvc work