adds optional location param from form