move departure filter logic to separate function
add experimental HTML frontend