Added security at the view level for instances, in the furture may want to implement at the controller level