adding checked attr from cookie