adding method to check if Layout view is disabled