refine code... some preparations for embed button
add embed markup