Make sure the ifs are placed in front of the tab-pane to make sure that also isn't loaded.
Size down the metrics for smaller screens