fixed sesome javascript bugs, waiting for notification outline