Added funcitonality to undo menu item in gui to call the undo method in
manager