rendering of actions for different media and working back button