added controlers for url and index