added removing cookie, still need to add ajax