modified gallery and home page