add status functionality