small fixes and redirect for denied departments