fixed item display php code and merged dev

fixed the item dynamic code and added in the css changes from dev