restructuring the code to multiple window usage