secured add and edit methods