reorganized session management
Clear paste data button (postsubmit) added