Fixed create and edit actions in controller