moves filter for months into controller method