add enter functionality to all directory pages