Added the clearAll function to the UI and called from Controller!
It worked fine!!!!!!!!!!!!!!!!