Implicit variable declaration in ButtonsCaption Classes

Small checks as well