added label functionality to the button