added spinner to attachment preview