added getall to views