disable email notification
move logic from controllers to model
add tests