finished function buttons but need error messages