Cleaner implementation of pagecontrol pushing all code inside the form object (instead of the view) [#730]