update layout, functions and style for tab