new functions in main.js and new div in index html

Cancel appointment and sorting dates and time