remove set_index_vars from mail controller