added layout inflater to master adapter