integrated polaris into frontend, replaced all routing functionality with polaris and simplified everything