added clear all button functionality