clean up code in p3 controller_base, flash clears message after getter called