Fix automatic ui compilation by moving the ui import after the compile. Attempt to fix non-working signal/slot.