added flash error messages for panel controller