Bugfixes and refactoring

Fixed bug with startpage
Fixed draw in active tab not renaming tabcomponent