setting up media and mech page