updated register style and script