add styles and fix pointer position