fix minor js issues
fix null handle for applications
fix null handle for applications