working tags functionality and fixed locale issue