fix nav and before_action