Adding detectScreenResolution
By using detected dimension, smartly adject the window size