edit indexController