change action for view_election_data and try to save electino detail in file