run form_handler() in page_loaded()

this allows doing redirects after form handling