adding default hide callback