made button state dependent on pasteData state