changed view reutnrs to use compact() method