created view for homepage