moved views from templates