@Override
    public void actionPerformed(ActionEvent e) {
        String s = promptUserForDirectory();
        if (s == null) {
            return; //if user pressed cancel or close do nothing.
        }
        try {
            //todo tidify?
            //das magic
            registryHandler.setPathEnvironmentVariable(verify.verifyAndCleanPath(registryHandler.getPathEnvironmentVariable()+verify.cleanString(s)));
        } catch (IOException | InterruptedException | InvocationTargetException err) {
            jopDependency.showInputDialog(null, "Error Error", "https://www.youtube.com/watch?v=4aMD4uy-QGc&t=2m44s", jopDependency.ERROR_MESSAGE);
            err.printStackTrace();

        } catch (IllegalAccessException iae) {
            jopDependency.showMessageDialog(null, "Something is up with your rights!");
            iae.printStackTrace();
        }
    }