Places Api....refactoring of the code is request!!!