adding yield command to view