fixing some styles and adding auto-increment