update the elasticity of the dynamic views with a pinch gesture
remove unused static vars