Added permission checks for view, create, edit and delete for elements in the views.