added infopane logic