made changes in prototype controller for updation