copy checkbox code from pastebin