checkbox function added