Made QueryActivity abstract activity for refresh button