changed how layout works