change onEnter Method