pass variable into view