homepage code snippet changes