added default onConnect, some window helper methods and keepHash optional method