Refactored board html and css