added the view of adding appointments to the frontend