Added JOption for the confirmation
Updated JOption to have a cancel feature without throwing a bad nullpointerexception