prevent accidental closing
assign category on upload