Rewrited to object system - includes ajaxpage