updated to allow footer to be aligned and start on a specified page