add open file functionalities.