flash messages for filters, js fixes filters