changed selectedAssets behavior to get it working properly