Adding hide callback.