added apply job functionality