changed the IDs from displayinfo function
ddeleted repeated call of function displayinfo()
edited displayinfo function