Added session handler hook and fixed grist bouncing