Adding new method to open popup