Added export all option (only for staff); Minor bug fixes and refactoring