* slight refactor, show actions on selection * add unit tests * refactor logic into custom selector + hook