modified stem.html module and finish the ResultHandler need more refactoring