Fixed Min window issue when going back

- Modification of main window handlers (using the .appear handler)
- Added support for ranking in the future (No Data Available)