do not reset callbacks on onAttachedToWindow; updated gradle files