edit some function about custom gem devise