Add init interface with main_window as a parameter