adds url and view for index