Implements custom tab widget