Added edit methods and alerts