added get and remove cookie function