Created functions and updated html and css