refactored flash display into partial