changed cookie mem name
fixed faulty ID query
Added wrapContent