Removed bug in class StarTrekLayout with in context of mainWidget handling.