move code from mobile to root path && fix refresh issue, now it mantains state