Israel has been working to isolate Hamas since the Islamic group came to power in Gaza in June , 2007 and has said talks with the group will not be possible until it recognizes Israel , renounces violence and observes signed peace agreements .