query method added, adjust view for model property