check if there are uncommited changes