in agent and admin account on click of back to dashboard button it gets redirected to dashboard to the regular user not of the agent or admin, but it is not supposed to be like that, it should get redirecetd to agent account if current user is an agent and if its a regular user go to the regular users dashborad and so on