added showModalWindow service to determine if modal window should be shown or a new screen.