Code simplified, Alert message before popping up and Add button checking method enhanced for available time