fix template and update css for single media ajax view and activity image fix