initial selection tracking handling
fixed shared_pointer creation for selection handling
use now selected object to handle keys
add check for selected Object