added appointment functionality for doctors