implemented dynamically changing font size while resizing