Add mode and page information to form.