Added a deactivate() function to Tab so when switching tabs it hides the active contents. Also removed clearing of the pages so it's not destroyed each time. Co-authored-by: SoftFever <softfeverever@gmail.com>