building the course menu dynamically