keeping selected state in classname field when clicked in chrome