minor: rename functions, vars
fix thumbnail focus and resize issue