fixing ul/ol related bugs, added options paramater