Fixed timeruler's draw positions
Fixed cmd window's hide functionality