The film represented a departure from the more serious tones set in Akin 's 2004 Berlin Golden Bear winner " Head On " and 2007 's " The Edge of Heaven , " which won the screenplay award at the Cannes film festival .