removed function array with alert pop up