moved refresh to application.html.erb