Generate form on edit click, return table back to original state on cancel click