Fixed checked items staying checked after leaving folder, other fixes

When renaming a file, undo button is now disabled when no changes have been made.
Casting still has UI issues.