Changed modal to add group by member with one input box rather than plus signs. Also cleaned up code by moving some to the model