code refactoring in style css and views