Made view global + worked on traps