added prototypes/methods to display class, fixed event handler
changed Prompt class