In-built add tab function