implemented js ajax call to function to save applied filters