UPDATE: appfail script link is added to layout