Add open file functionality