adding possibility to set gui commands in the cleared state