Moved shadow handling to BaseActivity