fixed add and edit student functionality