add scale input variable
next and prev btns working