Started on refactoring UI to UIController

Maybe also run fitFileManager is a new thread/webworker and report
progress ->UI freezes on large files/slow machine