stackedView is working
refined selection
orgnize code