handling user deletion and editing