added editing subjects functionality