added control for homepage