refactored ajax-controller
some major changes and bugfixes in whole webapp