fix minor styles and position calculations