recieve and send paramas to index view