use current host as redirect url
fix helper bug
add flash messages to update