added main handler and text by time method