added permission helper class for views.  updated layout