fixed conditional button display
small cosmetics.