Fixed backend login calls (wasn't threaded)
Refactored code for controller/ui interaction