Wrote on enter hooks