fix view hidden without showing toast. Add interface for a callback.