added recent view logic