Open Refined Declaration + some refactoring
make Open Selected and Open Refined work the same