Move setpage to router, debug dup request