what is the purpose of useSelector