add advancedAttachmentView
change the damping and frequency, so that we can see the attachment behaviour more clearly
refactoring: use runtime programming to remove switch/case