add delegate didSelectTabAtIndex: