removed unused event handler for pagesetup
various coding style improvements