Improved the function and code organization by moving this into the component logic initalization.

Author: Long Nguyen Duc Hoang <lhnguyenduc@wpi.edu>
Merge pull request #255 from hlong290494/addAllDisabled

Disable the ">>" (Add all) button when there is no requirements.