#189 New panel tab is inserted at wrong location