fixed bug where route change would cause weird resizing