added Dir box entry functionality