Figured out the problem with the page not refreshing properly, It was an issue with prettifying the URL's in angular. I have removed them so all pages work properly now on refresh.