Enabled gallery and attach by using media element