modularized the pebble app