adding a clear state button