del index
refactor controller