refactored show assignment view