fixed a bunch of issues - damn page redirect ajax stupidity