added responsiveness to preview buttons