Fixed button lag and position of dialog. NOTICE API UPDATE!