Added two new hooks for form modification