added 11th frame logic to view