fix enabling and disabling checkbox
added script for check all function