refactor UIController and UIModalManager, allow for animation integration, some fixes