refactor the createSession.js

improve the UI