he was first made a member of parliament at the 1997 general election for the eastwood constituency. he has been the east renfrewshire mp from 2005 onwards. he held two cabinet posts: minister of state for europe (june 2007-october 2008) and secretary of state for scotland (october 2008-may 2010). he was made the shadow secretary of state for defence in october 2010. he became the shadow secretary of state for international development in 2013. he resigned from this job in november 2014 because he wanted to be the leader of the scottish labour party.