refactored notecard/views