Cleaning a bit
Revisited basic functionality
Closing window button
Closing auth window when no authorized