move display stuff into seperate method