Fixed bug in previoustab

Translated to Russian. And some refactoring