implementing the remove team/remove doctor functions