Added edit functionality for manager page