created custom init method for modal view controller which takes in a settings interface