Admin panel + ajax fixes