Update routing functionality in separate file. Needs to be integrated in html