fixed error showing and button color