updated html and css to improve sizing behaviour