fixing layout link bug attempt 2