Changed so it won't break when resizing screen