Refactored PrevievActivity.