disable attachments and some buttons