added edit thesis function