replaced some alert() with dialog using colorbox