moved thumbs and mainimg reusable vars into constructor