refactored controllers - add edit form