attach show function modification