Maps and categories

Maps,categories and FB modules are merged and final comments are added
ideally this function is not required. you are writing same code in `render`. try to write one function which will do this.