dismiss dialog after set the colors

Change-Id: I465890f30da933e1f3e9f5858c8cdfaa8bef0349