expose edit to controller