follow code for the checkbox and share button