clean up main, index & view