Added queryAdd and queryRemove methods to view.