present and dismiss view controller for input