Added support for custom ul and li classes