add tabs demo and update its api docs