removed spinner from main js. Need to develop into module.
checklayer getting functional