hid unnecessary fields and made edit more secure