patched ui.rs: added tags to use usleep