added registerListeners() method to PGL