css refactor and top border bar