wrap feature toggle around view code