fix compare handler
add support of different servers
remove global session parameters
change proxy script for submit
block interface during switching from text to visual mode