Dimiss keyboard an refactors