Make UI hide delay configurable (#527)