Include some methods to ApplicationController and refactored the controllers DeleteComment and Index.