#360|+Sandeeb|Refactored CreateRnRController , created model and moved its respective functions inside model