update to mainActivity