updated getIdeaById method