Added footer controls to instrument variables form and added middleware