extracted accepted attributes into a helper class which are loaded in an initializer. Added a header method for admin pages. Created closure resource.