added doctor functionalities