check to make sure disp layer has been allocated before showing it
check to make sure disp layer has been allocated before freeing it
Got rid of unnecessary