12: Got tab selection logic in place