implemented saving appointments