made angular code cleaner in the thumb controller