Factored out some mode setup and adjusted the task list window display.