first step to make pad layout dynamic