add native alert function