Add code for homepage template