custom directory button now fully working