Updating layout to account for animations