ajax functionality for semester editing