Changed popup alert to <div> alert