preShow and postShow method added to differentiate logic
Merge pull request #40 from peakgames/prePostShow

preShow and postShow method added to differentiate logic