removed hardcoded tab indices