initial commit of button logic