added styles and fixed tag bug