adds edit functionality for user profile