re-added messages controller