set quit button with static API as variant 2