Fixing minor bugs in the Make an Appointment and Register to an Event pages + Refactoring.