added check if you are in the admin panel or not.