main code for AMP website