added flex mixins and replaced old declarations