implementing roles assigned to users by admin
deleting waste files in assets/javascripts
removing unneccessary code