this is actually the right way of sending the dismissViewController method.