adding mixins for window resizing and for inview testing