Added open functionality in pdf export