view needs end key to keep it in the window