reverted widget reference count in order to avoid memory leak