added in hidden and shown events