callbacks replaced with rx java