changed controller extend and homepage