added show and update functions for user