Restructure frontend.
Handle Hash Change