added styles and display, renamed function