remove unnecessary blank line
title use block syntax for preventive hard coding title
remove 'type_' variable (not need now)
add missing links
code shorter: filter to filter_by
change variable name to more suitable name