update mainActivity