Added code to get selected semester and set it state to selected in the interface