add End Button detection