Changed Adapter Method and cleaned code

Changed Adapter Method and cleaned code