I have resolved it by passing an extra parameter to the show method