edit subject session and activity funtionality