added code for editing students