adds a tasks by tag query and handler