moved search to header