adding code for timestatus window