Added advertisements pages, logic and tests