change alert() into text