add adapter and layout