add skip before action to mesages controller