protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.ActivePast);

            supportToolbar = this.FindViewById <SupportToolbar> (Resource.Layout.back_menu);
            SetSupportActionBar(supportToolbar);
            SupportActionBar.SetHomeButtonEnabled(true);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            SupportActionBar.SetDisplayShowTitleEnabled(true);
            SupportActionBar.Title = "TapTap Coffee";

            filter = Intent.GetStringExtra("Query");


            confirmedDialog = new Android.Support.V7.App.AlertDialog.Builder(this);
            confirmedDialog.SetTitle("Order Received");
            confirmedDialog.SetMessage("Your order was received and paid!");
            confirmedDialog.SetPositiveButton("Great!", delegate {
            });

            orders = GetOrders(Intent.GetStringExtra("Query"));

            if (orders.Count > 0)
            {
                //frame layout slow
                ActivePastFragment activePast = new ActivePastFragment(orders, new OrderAdapter(this, orders));
                FragmentManager.BeginTransaction().Replace(Resource.Id.variable_frlayout, activePast).Commit();
            }
            else
            {
                //framelayout slow
                NoOrdersFragment noOrders = new NoOrdersFragment();
                FragmentManager.BeginTransaction().Replace(Resource.Id.variable_frlayout, noOrders).Commit();
            }

            if (Intent.GetStringExtra("Past") == "pay")
            {
                confirmedDialog.Show();
            }
        }
		protected override void OnCreate (Bundle savedInstanceState)
		{
			base.OnCreate (savedInstanceState);
			SetContentView (Resource.Layout.ActivePast);

			supportToolbar = this.FindViewById<SupportToolbar> (Resource.Layout.back_menu);
			SetSupportActionBar (supportToolbar);
			SupportActionBar.SetHomeButtonEnabled(true);
			SupportActionBar.SetDisplayHomeAsUpEnabled (true);
			SupportActionBar.SetDisplayShowTitleEnabled (true);
			SupportActionBar.Title = "TapTap Coffee";

			filter = Intent.GetStringExtra ("Query");


			confirmedDialog = new Android.Support.V7.App.AlertDialog.Builder (this);
			confirmedDialog.SetTitle ("Order Received");
			confirmedDialog.SetMessage ("Your order was received and paid!");
			confirmedDialog.SetPositiveButton ("Great!", delegate {
				
			});

			orders = GetOrders (Intent.GetStringExtra ("Query"));

			if (orders.Count > 0) {
				//frame layout slow
				ActivePastFragment activePast = new ActivePastFragment (orders, new OrderAdapter (this, orders));
				FragmentManager.BeginTransaction ().Replace (Resource.Id.variable_frlayout, activePast).Commit ();
			} else {
				//framelayout slow
				NoOrdersFragment noOrders = new NoOrdersFragment ();
				FragmentManager.BeginTransaction ().Replace (Resource.Id.variable_frlayout, noOrders).Commit ();
			}

			if (Intent.GetStringExtra ("Past") == "pay") {
				confirmedDialog.Show ();
			}
		}