modify the jsp and remove unused code