fixed if else end syntx error in locals controller
Merge pull request #15 from cdcueva/setup_layout

fixed if else end syntx error in locals controller