Bug fix & new function

In this version, you can see in the project, if the project is reverted
or published (you can see it from the background color).
It has also a logical mistake, which I have fixed it.