allows to create custom checkbox and radio inputs