Created Edit page, fixed bug for update in Controller