add delete function in theme_controller
finish reading process