Modified to have a generic function for the showing of success message that automatically fades

Reviewer: Tiff Go (post commit)

Issue: GCP-8900