Declared private methods in popup.