Fixed adding row function, tried to make values calculate dynamically

Values have to be edited before they can all be calculate dynamically.