refactored each block for list_tags method in app controller to one line