Changed calling the open method for photo gallery