Refactor: convert to new signal-connection style.
Change setupUI from protected to public so that it can be connected
using the new style connect. Since it was called via a connection, it
was essentially public anyways - now this is made explicit.