reduced logic in searchhour template