add admin check and link cart functions 2.9