optimizing the router of user page