add helper functions for templating, working WP plugin live search