got dynamic form building to work and fixed session end