add basic functionality for index and show to the profiles controller