Added restriction for admin theme

Added if condition that restrict admin theme from the display.