public HomeScreenViewController()
            : base(null, null)
        {
            //PrepareChannelBar();
            homeDateView = new ODHomeVC();
            homeDateView.TabBarItem = new UITabBarItem ("HomeDates_Tab".Localize(), UIImage.FromBundle ("home_off_black"), 0);

            matchingDatesView = new MatchingDatesViewController();
            matchingDatesView.TabBarItem = new UITabBarItem ("MatchingDates_Tab".Localize(), UIImage.FromBundle ("matches_on_black"), 1);

            notificationsView = new NotificationsViewController();
            notificationsView.TabBarItem = new UITabBarItem ("Notifications_Tab".Localize(), UIImage.FromBundle ("messages_on_black"), 2);

            var tabs = new UIViewController[] {
                homeDateView, matchingDatesView, notificationsView
            };

            ViewControllers = tabs;
            //this.Title = "OpenDate";
            UIBarButtonItem menuBtn = new UIBarButtonItem ("Menu", UIBarButtonItemStyle.Plain, null);
            UIBarButtonItem newBtn = new UIBarButtonItem (UIBarButtonSystemItem.Add);
            this.NavigationItem.SetLeftBarButtonItem (menuBtn, false);
            this.NavigationItem.SetRightBarButtonItem (newBtn, true);

            menuBtn.Clicked += (object sender, EventArgs e) =>
                {
                    SidebarController.ToggleMenu();
                };

            newBtn.Clicked += (object sender, EventArgs e) =>
            {
                ProposeDatesViewController proposeController = new ProposeDatesViewController ();
                if (proposeController != null) {

                    this.NavigationController.PresentModalViewController (proposeController, true);
                }
            };

            TabBar.TintColor = LettuceColor.BoyBlue;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            // If was send true to Profile.EnableUpdatesOnAccessTokenChange method
            // this notification will be called after the user is logged in and
            // after the AccessToken is gotten

            if (AccessToken.CurrentAccessToken == null) {
                InitFacebookLogin ();
            } else {
                FinalizeLogin ();
            }

            // set up events
            ActiveDateBtn.TouchUpInside += (object sender, EventArgs e) =>
            {
                ShowDateView(1);
            };

            BrowseDateBtn.TouchUpInside += (object sender, EventArgs e) =>
            {
                ShowDateView(2);
            };

            InterestedDateBtn.TouchUpInside += (object sender, EventArgs e) =>
            {
                ShowDateView(4);
            };

            ProposeDateBtn.TouchUpInside += (object sender, EventArgs e) =>
            {
                ProposeDatesViewController proposeController = new ProposeDatesViewController ();
                if (proposeController != null) {

                    this.NavigationController.PresentModalViewController (proposeController, true);
                }
            };
        }