checking if items are displayed before calling them. This may break some things so lets see.