Helper function for generating list of stories and some checkings in edit view