The orientation change methods and the set callback method have modified to use the module thread so that calls to any of them happens in the same thread and in order