Module preDispatch() and postDispatch() made uniform throughout the codebase