Elements in window now resize properly