Make Save/Back buttons interchangeable on edit panel.

I have implement a has_changed property on file class.
If the file has changed, the save button is displayed;
else the back button is displayed.