added change status functionality