fixed some errors and added checkboxes to product edit