refactoring css in index view