prepare for homepage