Added callbacks and fixed viewport error