passing search term m to template