general helper file

using this code you can reduce your effort by writing extra code in module call function directly and write all code in controller itself