clear function from toolbar working