UI: an attempt to cope with unit testing