added cs for ajax handling and made minor corrections to ajax-actioncode