Fixing the if statement to use plugin slug as page