This is the modified code which follows your advices.
Please Login to Report Topic
Please Login to Share Feed