Added register function and style