added mode parameter to URL query instead of as a POST-hidden parameter, for tracking on server logs