adds methods for querying custom views