using mixin to reduce code redundance in 'plans' views.