complete the adapter and activity