Refactors show view