Implemented wildcards in search by text and updated layout.html to remove unused code