Added department action restrictions

Based on permissions
+ changed edit table layout (in case we do not show it)