refactor student show action