[view] refactor and fix courses index table