decided not to use ajax code