Update position method

add destory method, add dialog buttons
Change position and and fixed bug