Correctly Hide/Show cursor