refactored layout so that partial can be used in hosting app