use flexbox to handle homepage search