creating layout and refactoring css