rename vars in index
fixed up view