added code for homepage