Refactored executeDisplay into two methods
Cleaned up code