adding in the resize directive and setting up the base html