Added logic to show the prior selected values on pickers