Fix warning and added cheсk for declaration for configureMenuButton: method