refactor css and views