Fixed bug with time in restart, create function setTime
Added preprocessor directives that controls ui depends on OS