some changes for edit and update method in standard controller