replacing popup alert with html
eliminating annoying alerts