added state to mobile