cleanup_view_runtime method reformating