Made the mainframe focus the checkout frame or login frame if they are
open and someone tries to open a new one