Make sure the correct snippet is shown depending on masterpages/views