Init window function..