reworked the require functions and add a little of CSS