changed public method on clearViewController