worked on tag display in QueryActivity and simplified MainActivity
QueryActivity now works with its dialogs correctly