now works with urwid canvas content instead of dictuionary