added paneswitching lua