added edit and delete controllers