checkbox functionality
final modifications