Refactored html and css of 2d for simplicity