added the method in helper&controller