Modified Custom View

Added the Scaling Function