cleanup code and close off ul elements