Fixed the issue with the broken worker dialog. Also implemented autofocus as directive. [Ticket: #206]