Alinged the changes of data with scale and introduced transition animation during update.
Included changes to introduce labels and options like input for the function.
Minor refactoring