replace alert with div