changed condition on when to show/hide stock count preview button