Edit to make search from home page work