populating form and passing values works now