implemented remove photos, approve photos and remove option from resources for admin
refactored some code