Added classes to <li> that has <ul>.