setup thumbnail implementation + tab switching