code refactor for react objects
first version with styles