Modified baseframe.js tab selection