Dynamically creating checkboxes and retaining states on orientation change