added hooks into form class