adding a method to formDelegate