added def edit to controller, it shows the form