refactor spec and css