fix the redirect and expand the menu