add function to auto-load first tab