adding enable and creating window instance