Better scale calculation
Removed close button