Custom clearWidgets method

Change-Id: Iba826e3c824701984a97535731c22730d3b0c487