Changed the flow and changes according to flow, implemented invite friends functionality.