Small changes and corrections to the internal panel management APIs