Add open the last edited file functionality