updated nearme code to address display mobile error