Fixed Window and Mouse errors and rendering