redirect to a dashboard page correctly