handled case when data is null and moving through dropdown list selection