added titles to topn widget schema
code cleanup