introduce top_controller
implement directory index