Fixed bug with params. Added layer reset improvements
Merge pull request #998 from lonelyplanet/jesus/controller-fixes-for-layers

Controller: Fixed bug with params and layer reset improvements