add time and clear screen functionality