update json acording to what server is going to send, add lendType selector
max date changes according to lend type
minor fix