Added status check to choose whether to show pencil or magnifying class