finished createUserWindow implementation