dependency problem fixed, layout direction added