updated with time dialog