Split up controlsActions into a main one and a file for the actions related to the subwindows.