fixed callback bug and make it possible to show html in alertboxes