Finished fixing the notifications so that they appear correctly when wanted. Next is to fix the timing of the notifications so that they dissapear after 5 seconds.