added show adverts and added api routes