Various fixes (ajax, rendering)