Refactored formlocation to program parameter