refactored and improved thumbpresenter code