complete the previous commit and moved makeSearchable into template because needs to be present if we navigate from another page