fixed issue when updating and viewing students