adding tags functionality