added ajax to create appointments