Add controller functionality for saving tags