update mobile function