move madlib to views file add feature flags