async void Submit_Clicked(object sender, System.EventArgs e)
        {
            try
            {
                StatusEntry.Text = LocationEntry.Text;
                if (AssetEntry.Text == null &&
                    StatusEntry.Text == null)
                {
                    await DisplayAlert("Error", "Please fill in missing fields", "OK");
                }
                else if (AssetEntry.Text == null)
                {
                    await DisplayAlert("Error", "Please fill in asset ID/ barcode.", "Ok");
                }
                else if (StatusEntry.Text == null)
                {
                    await DisplayAlert("Error", "Please fill in location.", "Ok");

                    //LocationEntry.IsVisible = false;
                    //statusFrameEntry.IsVisible = true;
                }
                else
                {
                    DateTime now = DateTime.Now.ToLocalTime();
                    Dictionary <string, string> dict = new Dictionary <string, string>();
                    dict["asset"]       = AssetEntry.Text;
                    dict["newLocation"] = StatusEntry.Text;
                    dict["time"]        = now.ToString();
                    var isSuccess = await cloudStore.UpdateAsset(dict);

                    if (isSuccess)
                    {
                        locationstack.IsVisible = false;
                        await DisplayAlert("Success", "Location is updated.", "Ok");

                        App.Current.MainPage = new MainViewAssetPage();
                        //AssetEntry.Text = string.Empty;
                        //LocationEntry.Text = string.Empty;
                    }
                    else
                    {
                        await DisplayAlert("Error", "Updated failed. Please try again.", "Ok");
                    }
                }
            }
            catch (Exception ex)
            {
            }
        }