added dialog for time