controller + edit and index