move some code for event handler for testability
added specs for upload card
remove retry button which is already unused
updated build files