Reschedule logic implemented

Added all the reschedule logic
Added an ajax loader on the main page for aesthetics