cleaned up a path for how pages work with each other

Setup of department, editing of permissions, templates all come from "setup" navigation option.

Cleaned up the templates controller to use the security attribute for check departmental access.