Added open file functionality