fix bug edit mode os not set to NO when Home button pressed