refactorized Srednia and made protrait mode only