Optimizations.
Fixed some layout issues.
Implemented function to refresh all data.
This is used for the refresh button and when the login data is changed.