How to have a history of commands in Basic UI