Enabled the modalize function which I am using in my other project. Let to fixing some bugs in the form view.