Slightly modified the revealCell function