My code and Mike's code Merged For All The Pages