fix routes and double render error