adding edit functionality for admins