added support for filtering jobs by state