update the style, fix submit on pressing return