removing undef methods
solving prevent default keys problem