Revise course mode choose page.

LMS-2796
Merge pull request #4108 from edx/diana/update-choose-form

Revise course mode choose page.
courseware/views.py index function position value integer error correction and test

LMS-2844