added closing ul tag in functions