Populate fields when preview button pressed and save populated fields correctly. Also add pip requirements