Changed the session reset method and fixed a click event issue.