minor css tweak and refactoring