scale effect on user pan + refactoring + demo improvements