Remove unnecessary items in ul