parameter passed to constructor can disable attach of button