Changed the routes to use ints instead of longs, and solved the empty page bug.