add div click-event code