added popfront and popback to adapter, implemented a few post media functionalities