detection if second fragment is in layout