Adding logic to onlu show dotted line when there are file tools