Finish checkbox function