adding gui conditional