Fixed the Home button in EndActivity to work properly