added constatnt and redirect
some admin fixes