added render 500 to app controller