New role, ajax error pages and some more improvements