         self.backgroundColor = UIColor.whiteColor()
         setupNavigationBar()
         searchControlsContainer = UIView(frame: self.frame.inset(sides: 15).atY(64).withHeight(50))
+        searchControlsContainer.autoresizingMask = [.FlexibleWidth, .FlexibleBottomMargin]
         setupSearchField()
         if self.isSearchView { setupToggleButtons() }
         setupStreamView()

        let buttonY = searchControlsContainer.frame.size.height
        // add the height of a button plus additional 10 for bottom padding
        searchControlsContainer.frame.size.height += 43
        let postsBtn = OutlineElloButton(frame: CGRect(x: 0, y: buttonY, width: btnWidth, height: 33))
        postsBtn.setTitle(NSLocalizedString("Posts", comment: "Posts search toggle"), forState: .Normal)
        postsBtn.addTarget(self, action: Selector("onPostsTapped"), forControlEvents: .TouchUpInside)
        postsToggleButton = postsBtn
        searchControlsContainer.addSubview(postsBtn)

        let peopleBtn = OutlineElloButton(frame: CGRect(x: postsBtn.frame.maxX + 10, y: buttonY, width: btnWidth, height: 33))
        peopleBtn.setTitle(NSLocalizedString("People", comment: "People search toggle"), forState: .Normal)
        peopleBtn.addTarget(self, action: Selector("onPeopleTapped"), forControlEvents: .TouchUpInside)
        peopleToggleButton = peopleBtn

            ))
        button.setTitle(NSLocalizedString("Find your friends", comment: "Find your friends button title"), forState: .Normal)
        button.addTarget(self, action: Selector("findFriendsTapped"), forControlEvents: .TouchUpInside)
        button.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]

        let label = ElloLabel()
        label.frame = CGRect(
