Size variants and bug fixes

* Adding support for size variants in dialog.
* bug fixed for when item has a single license.
* cleaner js

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>