enable and disable All and Max buttons in purchase shares dialog