Handles mounted event