some code refact in users show