PRAS optimizations and ajaxification
ready to merge