Attaching FileGrid events.
Adding undo redo function.

* Remoding redundant class.