adding insert status functionality