Created proper routing. Site still works after refresh.