working on widget queries