update mainfragment