added conditional css for result dialog