Added tab widget method