started to change display functions
made a displayed frame function