add js to fade out for petitions and view grades
adding more view grades stuff
remove some unnecessary code and fix indentation