Completed the populate checkbox functionality