passing promises directly to view