use sm in mvc events