Fixed bugs in permissions, fixed up policies page