Made form dynamic for percentage/weight choice by using #states variable