Working version - different windows open/close + log in