ajaxified stuff, added demo mode,fixed ui