move '&action=advanced' to proper place