added main view. fixed urls.