fix broken filters by moving code into a function
add link to admin bar