moved javascript warning block to manager.html.erb