added support for smaller browers