updated html styling and javascript