fix bug where the course list ui not shown properly