Got the routes to work without the page refreshing. But I can't help feeling that this isn't the right way...